<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.zpyr.mvc.vo.Carc_evaluation"%>
<%@page import="java.util.List"%>
<%@page import="com.zpyr.mvc.vo.Carc_info"%>
<%@page import="com.zpyr.common.StringUtil"%>
<!DOCTYPE html>
<html>
<head>
<%
	String distance = request.getParameter("distance");
	String lat = request.getParameter("lat");
	String lng = request.getParameter("lng");

	List<Carc_info> carc_list = (List<Carc_info>) request.getAttribute("carc_list");
%>
<title>주변검색</title>
<link rel="stylesheet" href="/css/common.css" />
<style>

</style>
</head>
<body>

<div id="header" class="header">
<span style="">주변검색</span>
<span style="float: right; margin-left:10px;" class="button1" onclick="goSearchAroundMap( $('select[name=search_around]').val() )">지도보기</span>
<span style="float: right;" class="button1">
<select name="search_around" onchange="goSearchAroundList(this.value)">
<option value="100">100m</option>
<option value="300">300m</option>
<option value="500">500m</option>
<option value="1000">1km</option>
</select>
</span>
</div>

<div id="page_search_around_scrollList1" style="height:350px;">
	<ul id="search_around_list">
<%
	if(carc_list != null) {
		for( Carc_info carc_info : carc_list ) {
%>
	<li class="content1" onclick="goCarcenterInfoPage('<%=carc_info.getInfo_seq()%>');">
	<h3><%=carc_info.getName() %> - <%=carc_info.getStrDistance() %></h3>
	<br />
	<%=carc_info.getDescription() %>
	</li>
<%
		}
	}
%>
	</ul>
</div>
<script>
new iScroll('page_search_around_scrollList1');
$('select[name="search_around"]').val('<%=distance%>');
</script>
</body>
</html>